package com.xiao.train.member.controller.admin;

import com.xiao.train.member.service.TicketService;
import com.xiao.train.common.resp.CommonResp;
import com.xiao.train.member.req.TicketQueryReq;
import com.xiao.train.member.req.TicketSaveReq;
import jakarta.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("admin/ticket")
public class TicketAdminController {

    @Autowired
    TicketService ticketService;

    @GetMapping("query-list")
    public CommonResp queryList(@Valid TicketQueryReq req) {
        return new CommonResp(ticketService.queryList(req));
    }

}